Since C++03, a member function that is contained within a class definition is by definition inline
, so an using an inline
specifier on such functions is redundant.
Noncompliant code example
class Foo {
inline void method() { // Noncompliant
// ...
}
};
Compliant solution
class Foo {
void method() {
// ...
}
};